Finding Transpose of Matrix in C